package com.example.tacocloud;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.Size;

import lombok.Data;

@Data
public class Taco {

    private int id;

    private Date createdAt;
    
    // @Size(min = 5, message = "Name must be at least 5 characters long.")
    // 不知道为什么 这里加上就出错了，提交后模板无法解析
    private String name;

    @Size(min = 1, message = "You must choose at least 1 ingredient.")
    private List<String> ingredients;
}
